<?php echo $this->load->view('header.php'); ?>
<?php
$items = array(anchor('category/main','Category list'));
$data["items"] = $items;
echo $this->load->view('body_open.php',$data); ?>

<h3>Create new category</h3>

<form action="<?php echo site_url('category/insert'); ?>" method="post">
<fieldset>
<p><label>Id:</label><input type="text" name="category_id" /></p>
<p><label>Description:</label><input type="text" name="name" /></p>
<p><input type="submit" value="Save" /></p>
</fieldset>
</form>

<?php if($this->session->flashdata('error')): ?>
<font color="#FF0000" size="+1">
<?php echo $this->session->flashdata('msg'); ?>
</font>
<?php endif; ?>

<?php echo $this->load->view('body_close.php'); ?>